package com.lwlk.zdk.mapper.pw;

import com.lwlk.zdk.model.CommonMenu;
import com.lwlk.zdk.model.TreeMenu;
import com.lwlk.zdk.model.TreeMenuThree;
import com.lwlk.zdk.model.TreeMenuTwo;
import com.lwlk.zdk.model.pw.pwMenu;
import com.lwlk.zdk.model.pw.pwMenuExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface pwMenuMapper {
    int countByExample(pwMenuExample example);

    int deleteByExample(@Param("id") Integer id);

    int insert(pwMenu record);

    int insertSelective(pwMenu record);

    List<pwMenu> selectByExample(pwMenuExample example);

    int updateByExampleSelective(@Param("record") pwMenu record);

    int updateByExample(@Param("record") pwMenu record);

    List<pwMenu> selectAlls(pwMenu pwMenu);

    String selectSubmenuName(@Param("id") Integer id);

    String selectRoutingPath(@Param("sId") Integer sId);

    String selectThreeLevelMenuName(@Param("id") Integer id);

    List<pwMenu> selectMenuIevelSign();

    String selectMenuIevelName(@Param("mId") Integer mId);

    String selectMenuIevelIdPath(@Param("mId") Integer mId);

    List<Map<String,Object>> selectSuperior(@Param("id") Integer id);

    List<Map<String, Object>> selectmenuIevelSignSuperior(@Param("id") Integer id);

    Integer selectMenuIevelId(@Param("mId") Integer mId);

    List<TreeMenu> selectMenuStair();

    List<TreeMenuTwo> selectMenuTwo(@Param("id") Integer id);

    List<TreeMenuThree> selectThreeMenu(@Param("id")Integer id);
}